﻿@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
}
@using MVCTrainningSample.Models;
@model LoginViewModel
<div class="row" style="padding-top:150px;">
    <div class="col-lg-12">
        @using (Html.BeginForm())
        {
            @Html.AntiForgeryToken()

            <div class="form-horizontal">
                <h4>User Login</h4>
                <hr />
                @Html.ValidationSummary(true)
                <div class="panel-body">
                    <div class="col-lg-12">
                        <div class="form-group">
                            @Html.LabelFor(model => model.Username, new { @class = "control-label col-md-2" })
                            <div class="col-md-9">
                                @Html.TextBoxFor(model => model.Username, new { @class = "form-control", @style = "width: 300px;" })
                                @Html.ValidationMessageFor(model => model.Username)
                            </div>
                        </div>

                        <div class="form-group">
                            @Html.LabelFor(model => model.Password, new { @class = "control-label col-md-2" })
                            <div class="col-md-9">
                                @Html.PasswordFor(model => model.Password, new { @class = "form-control", @style = "width: 300px;" })
                                @Html.ValidationMessageFor(model => model.Password)
                            </div>
                        </div>

                        <div class="form-group">
                            @Html.LabelFor(model => model.RememberMe, new { @class = "control-label col-md-2", @style = "margin-top:-12px;" })
                            <div class="col-md-10">
                                @Html.EditorFor(model => model.RememberMe)
                                @Html.ValidationMessageFor(model => model.RememberMe)
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-md-offset-2 col-md-10">
                                <input type="submit" value="Login" class="btn btn-default" />
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        }

    </div>
</div>

